//
//  HMGamemgr.h
//  SNS_Login-register
//
//  Created by hy on 2021/10/27.
//  Copyright © 2021 lzxuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <EgretNativeIOS.h>

NS_ASSUME_NONNULL_BEGIN

@interface HWGameMgr : NSObject
/** rootViewController */
@property (nonatomic, weak) UIViewController *rootViewController;

+ (instancetype)shared;
+(UIWindow*)getCurrentWindow;
+(NSString *)getDeviceString;
+ (NSString *)randomString:(NSInteger)number;
+ (NSString *)randomAccount:(NSInteger)number;

- (void)callToJsWithMethed:(NSString*)methed andDic:(NSDictionary*)dic;
- (void)setExternalInterfacesWith:(EgretNativeIOS*)native;
- (void)showToastWithMsg:(NSString *)msg;
-(void)hiddenLogin;
-(void)showLogin:(NSDictionary*)dic;
-(void)showReg:(NSDictionary*)dic;

-(void)hiddenBall;
-(void)showBall;

-(void)showUserAgreement:(NSString*)url;
-(void)hiddenUserAgreement;

-(void)showExchangeView:(NSDictionary*)dic;
-(void)hiddenExchangeView;

-(void)showRealNameView:(NSDictionary*)dic;
-(void)hiddenRealNameView;

-(void)showBindPhoneVew:(NSString*)account;
-(void)hiddenBindPhoneVew;

-(void)showUserViewWith:(NSDictionary*)dic;
-(void)hiddenUserView;


- (void)httpRegister:(NSDictionary*)data;
- (void)httpLogin:(NSDictionary*)data;
- (void)httpRealName:(NSDictionary*)data ;
- (void)httpBindPhone:(NSDictionary*)data;
- (void)httpGetCode:(NSDictionary*)data;

@end

NS_ASSUME_NONNULL_END
